import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import "./components/Loading/index.css";
import Loading from "./components/Loading/index";

import "./plugins/zTree/js/jquery-1.4.4.min.js";
import "./plugins/zTree/js/jquery.ztree.core.min.js";
import "./plugins/zTree/js/jquery.ztree.excheck.min.js";
import "./plugins/zTree/js/jquery.ztree.exhide.js";

import "vx-easyui/dist/themes/gray/easyui.css";
import "vx-easyui/dist/themes/icon.css";
import "vx-easyui/dist/themes/vue.css";
import EasyUI from "vx-easyui";
import locale from "vx-easyui/dist/locale/easyui-lang-zh_CN";
import "@/assets/css/communal.css";
import "@/api/communal.js";

import "../node_modules/ag-grid-community/dist/styles/ag-grid.css";
import "../node_modules/ag-grid-community/dist/styles/ag-theme-balham.css";

import "ag-grid-enterprise";
import { LicenseManager } from "ag-grid-enterprise";

// 引入 ECharts 主模块
let echarts = require('echarts/lib/echarts');
// 引入柱状图
require('echarts/lib/chart/pie');
// 引入提示框和标题组件
require('echarts/lib/component/tooltip');
require('echarts/lib/component/title');

LicenseManager.setLicenseKey(
  "IRDEVELOPERS_COM_NDEwMjM0NTgwMDAwMA==f08aae16269f416fe8d65bbf9396be5f"
);

Vue.use(Loading);
Vue.use(EasyUI, { locale: locale });
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
